package org.dromara.vehicle.modules.vehicle.domain.bo;

import org.dromara.vehicle.modules.vehicle.domain.VehicleInsuranceInfo;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 车辆保险信息业务对象 vehicle_insurance_info
 *
 * @author ckk
 * @date 2025-06-24
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = VehicleInsuranceInfo.class, reverseConvertGenerate = false)
public class VehicleInsuranceInfoBo extends BaseEntity {

    /**
     * 主键ID
     */
    private Long id;

    /**
     * 关联车辆基本信息表ID
     */
    @NotNull(message = "关联车辆基本信息表ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long vehicleId;

    /**
     * 投保日期
     */
    private Date insuredDate;

    /**
     * 保险公司名称
     */
    private String insuranceCompany;

    /**
     * 险种名称
     */
    private String insuranceType;

    /**
     * 保险期限开始时间
     */
    private Date insuranceBeginDate;

    /**
     * 保险期限截止时间
     */
    private Date insuranceEndDate;

    /**
     * 保费金额(元)
     */
    private BigDecimal premium;


}
